package com.djf.eg.dao;

import java.util.List;

import com.djf.eg.entity.UserInfo;
import com.github.pagehelper.Page;

public interface UserInfoDao {

	public UserInfo getUserById(int id);
	
	public List<UserInfo> getAllUsers();
	public Page<UserInfo> getRolesByPage();
	public List<UserInfo> getUserByUsername(String username);
	public int addUser(UserInfo user);
	public void updateUser(UserInfo user);
	public void deleteUser(int id);
	public void deleteUserRoles(int userId);
	public int addUserRole(int userId, int roleId);
}
